
from fastapi import FastAPI
from services.api import generate_report, stream_generate_report
from services.api import request_handler
import uvicorn

app = FastAPI()
app.post( path='/report', description="AI数据分析")(generate_report)
app.post( path='/stream_report', description="AI数据分析流式输出")(stream_generate_report)
app.post( path='/test', description="AI数据分析流式输出")(request_handler)


if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8000, reload=False)
